import Vue from 'vue'
import Router from 'vue-router'
import Login from '../components/Login.vue'
import Main from '../components/Main.vue'
import Umain from "../components/Umain.vue";
import Index from "../components/Index.vue";
import Message from "../components/Message.vue";
import Question from "../components/Question.vue"
import Mine from "../components/Mine.vue";


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'login',
      component: Login,
    },
    {
      path: '/login',
      component: Login,
    },
    {
      path: '/umain',
      component: Umain,
      children: [
        {
          path: '/index',
          component: Index
        },
        {
          path: '/question',
          component: Question
        },
        {
          path:'/message',
          component: Message
        },
        {
          path: '/mine',
          component: Mine
        }
      ]
    },
  ]
})
